<template>
  <span>
    <img
      :src="getPath()"
      class="w-full h-full"
    />
  </span>
</template>
<script
  setup
  lang="ts"
  name="SvgIcon"
>
// eslint-disable-next-line vue/require-prop-types
const props = defineProps(['name'])

const getPath = () => {
  return new URL(`../../assets/icons/${props.name}.svg`, import.meta.url).href
}
</script>

